package com.dfrz.ch07;

import java.util.Date;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/14 10:43
 * 描述:
 */
public class DateTest {
    public static void main(String[] args) {
        Date date=new Date(System.currentTimeMillis());
        System.out.println();   //  1=1000 ;  1M =60*1000；  1H=60*1000*60
        System.out.println(date.getTime());
        System.out.println(date.toString());
        date.getYear();
        date.getMonth();
    }
}
